<?php
	function getConnection() {
		$dbName = "someDatabase";
		$dbHost = "localhost";
		$dbUser = "username";
		$dbPass = "password";
		$dbPath = "/path/to/file.db";

		$db = NULL;

		//$db = new PDO("pgsql:dbname=$dbName;host=$dbHost", "$dbUser", "$dbPass" );	//PgSQL
		//$db = new PDO("sqlite:$dbPath");												//SQLite
		//$db = new PDO("mysql:host=$dbHost;dbname=$dbName", $dbUser, $dbPass);			//MySQL
		//$db = new PDO("OCI:dbname=$dbName;charset=UTF-8", "$dbUser", "$dbPass");		//Oracle

		return $db;
	}
?>
